<link href="./css/style.css" rel="stylesheet" type="text/css" />
<script src="./js/jquery.js"></script>
<div class="main">
<div class="userlist">
	<p class="tt"><a>首页</a>><a>财务管理</a>><span>提现记录</span></p>
	<div class="div">
		<form method='GET' action="?" class='search' >		
			<p><span>会员账户</span><input type='text' name='uname' value="{$uname}" placeholder='请输入会员账户' /></p>
			<p><span>开始时间</span><input type='date' name='stime' value="{$stime}" /></p>		
			<p><span>结束时间</span><input type='date' name='etime' value="{$etime}" /></p>		
			<p><input type='submit' value='立即搜索' /></p>
			<a class="dc abtn2" style="float:right; width:auto;" href="excel.php?act=tixian&uname={$uname}&stime={$stime}&etime={$etime}" target="main">导出提现记录</a>
		</form>
	</div>
	<div class="list">			
{if($msg==0)}
		<p class='none'>未查询到资料</p>
{else}
	<table class='aa'>
		<tr class='tr'><td class='s1'>ID</td><td>账户</td><td>姓名</td><td>提现类型</td><td>提现金额</td><td>实付金额</td><td>税费</td><td>手续费</td><td>联系方式</td><td>银行名称</td><td>银行卡号</td><td>持卡人</td><td>申请时间</td><td>审核时间</td><td>申请状态</td><td>操作</td></tr>
	{loop $tlist $key as $list}
	<tr>
		<td>{$list[Id]}</td>
		<td>{$list[uname]}</td>
		<td>{$list[tname]}</td>
		<td>{if($list['type']==1)}收益
			{elseif($list['type']==2)}购物值
			{/if}
		</td>
		<td>{$list[num]}</td>
		<td>{$list[cash]}</td>
		<td>{$list[sxcash1]}</td>
		<td>{$list[sxcash2]}</td>
		<td>{$list[phone]}</td>
		<td>{$list[bname]}</td>
		<td>{$list[bcard]}</td>
		<td>{$list[btname]}</td>
		<td>{$list[addtime]}</td>
		<td>{if($list['state']>0)}{$list[passtime]}{/if}</td>
		<td>{if($list['state']==0)}未审核
		{elseif($list['state']==2)}已驳回
		{else}已审核{/if}</td>
		<td>{if($list['state']==0)}<a class='abtn2' style='display:inline-block;float:none; ' onclick="dk({$list[Id]})">审核</a> <a class='abtn3' style='display:inline-block;float:none; ' onclick="dkno({$list[Id]})">驳回</a>{else}<a></a>{/if}</td>
	</tr>
	{/loop}
</table>
{$page}
{/if}
</div>
</div>
<script>
	function one(){
		var message = confirm("确认审核全部");
		if(message == true){
		$.ajax({
		type:"post",
		dataType:"json",
		url:"/Moudel.php?m=m&a=onek",
		//data:"uid="+id,
		success:function(d){
			if(d[0]==0){
				alert(d[1]);
			}
			else{
				alert(d[1]);
				window.location.href='tixianlist.php';
			}
		}
		});	
		}
	}
	function dkno(id){
		var message = confirm("确认驳回申请？");
		if(message == true){
		$.ajax({
		type:"post",
		dataType:"json",
		url:"/Moudel.php?m=m&a=qrdk_no",
		data:"uid="+id,
		success:function(d){
			if(d[0]==0){
				alert(d[1]);
			}
			else{
				//alert(d[1]);
				window.location.href='tixianlist.php';
			}
		}
		});	
		}
	}
	function dk(id){
		var message = confirm("确认已打款？");
		if(message == true){
		$.ajax({
		type:"post",
		dataType:"json",
		url:"/Moudel.php?m=m&a=qrdk",
		data:"uid="+id,
		success:function(d){
			if(d[0]==0){
				alert(d[1]);
			}
			else{
				//alert(d[1]);
				window.location.href='tixianlist.php';
			}
		}
		});	
		}
	}
	h1 = $(".main").height();
	h2 = $(".tixianlist").height();
	if(h2>h1){
		$(".main").css("height","auto");
	}
	$('tr').click(function(){	
			$('tr').removeClass('onactive');
			$(this).addClass('onactive');
		});
</script>